package com.oracle.Service;

import com.oracle.Service.impl.LocationService;
import com.oracle.dao.impl.LocationDao;
import com.oracle.pojo.Location;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LocationServiceImpl implements LocationService {

    @Autowired
    private LocationDao locationDao;

    @Override
    public Integer save(Location location) {
        return locationDao.save(location);
    }

    @Override
    public Integer delete(Integer id) {
        return locationDao.delete(id);
    }

    @Override
    public Integer update(Location location) {
        return locationDao.update(location);
    }

    @Override
    public List<Location> findSome(Integer uid) {
        return locationDao.findSome(uid);
    }

    @Override
    public Location findOne(Integer uid, Integer status) {
        return locationDao.findOne(uid,status);
    }
}
